/*
 * @Descripttion: 文件说明
 * @version: V1.0
 * @Author: GW
 * @Date: 2021-07-29 10:40:41
 * @LastEditors: GW
 * @LastEditTime: 2022-05-09 16:12:32
 */
import { axios } from "../../utils/request";
//账套信息
const api = {
    list: "/erp/account/list",
    add: "/erp/account/add",
    edit: "/erp/account/edit"
};


/**
 * 获取列表
 */
export function list (parameter) {
    return axios({
        url: api.list,
        method: "get",
        params: parameter,
        timeout: 500000,
    });
}

/**
 * 新增
 * @param {*} data
 */
export function add (data) {
    return axios({
        url: api.add,
        method: "post",
        data: data
    });
}
/**
 * 修改
 * @param {*} data
 */
export function edit (data) {
    return axios({
        url: api.edit,
        method: "post",
        data: data
    });
}

